jquery on modal show

69

onclick open modal jquery -

$('#myModal').modal('toggle');
$('#myModal').modal('show');
$('#myModal').modal('hide');

onclick open modal jquery -

$('#myModal').modal('show'); 

how to make popup modal in jquery with example -

<!-- Modal HTML embedded directly into document -->
<div id="ex1" class="modal">
  <p>Thanks for clicking. That felt good.</p>
  <a href="#" rel="modal:close">Close</a>
</div>

<!-- Link to open the modal -->
<p><a href="#ex1" rel="modal:open">Open Modal</a></p>

Comments

Submit
0 Comments